package com.wang.config;

import com.wang.model.Counter;
import com.wang.model.Piano;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Bean;
import javax.sound.midi.Instrument;

/**
 * Created by wangixnyu on 2017/8/23.
 */
@Configuration
public class SpringConfig {
    @Bean
    public Piano piano(){
        return new Piano();
    }
    @Bean(name = "counter")
    public Counter counter(){
        return  new Counter(12, "Shake it Off");
    }
}
